﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using Sharp.Domain.Model;
using Sharp.Infrastructure;

namespace Sharp.Domain.CMSBoundedContext.VIUModule.Aggregates
{
    /// <summary>
    /// 顶格
    /// </summary>
    public partial class Digg : AggregateRoot
    {
        public Digg()
        {
            DiggDiarys = new List<DiggDiary>();
        }
        
        public Guid VIUId { get; set; }
        public int GoodNum { get; set; }
        public int BadNum { get; set; }
        public string LastUserName { get; set; }
        public System.DateTime LastDiggDate { get; set; }

        [ForeignKey("VIUId")]
        public virtual VIU VIU { get; set; }
        public virtual ICollection<DiggDiary> DiggDiarys { get; set; }
    }
}